package com.company.handler;

import com.company.Scene;
import com.company.skill.Skill;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/4/28 17:12
 * @version: v1.0
 * @modified By:
 */
public class HanderShow extends Handler {
    public HanderShow(Scene scene) {
        super(scene);
    }

    @Override
    public void doCommand(String word) {
        if ("skill".equals(word)){
            System.out.println("技能展示：");
            for (Skill item:scene.getPskillSet().getSkills()){
                System.out.print("技能名称："+item.getName()+"("+item.getId()+")"+" 技能耗蓝："+-item.getMagicValue()+"技能说明：");
                item.skillDescription();
            }
        }else{
            scene.showPersonDate();
            scene.showMonsterData();
        }


    }
}
